package org.jeecgframework.web.system.pojo.base;

import java.math.BigDecimal;
import java.util.Date;
import java.lang.String;
import java.lang.Double;
import java.lang.Integer;
import java.math.BigDecimal;
import javax.persistence.*;
import javax.xml.soap.Text;
import java.sql.Blob;

import org.codehaus.jackson.annotate.JsonIgnore;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;
import org.jeecgframework.poi.excel.annotation.Excel;

/**   
 * @Title: Entity
 * @Description: 发货单与备件关系表
 * @author onlineGenerator
 * @date 2018-04-08 17:24:58
 * @version V1.0   
 *
 */
@Entity
@Table(name = "cbs_deliver_equipment_map", schema = "")
@SuppressWarnings("serial")
public class CbsDeliverEquipmentMapEntity implements java.io.Serializable {
	/**主键*/
	private String id;
	/**发货单ID*/
	@Excel(name="发货单ID")
	private CbsDelinerEntity deliverId;
	/**备件申请单ID*/
	@Excel(name="备件申请单ID")
	private CbsEquipmentApplyEntity equipmentApplyId;

	
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  主键
	 */
	@Id
	@GeneratedValue(generator = "paymentableGenerator")
	@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
	@Column(name ="ID",nullable=false,length=36)
	public String getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  主键
	 */
	public void setId(String id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  发货单ID
	 */
	@JsonIgnore
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name ="DELIVER_ID", nullable = true)
	@NotFound(action = NotFoundAction.IGNORE)
	public CbsDelinerEntity getDeliverId(){
		return this.deliverId;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  发货单ID
	 */
	public void setDeliverId(CbsDelinerEntity deliverId){
		this.deliverId = deliverId;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  备件申请单ID
	 */
	@JsonIgnore
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name ="EQUIPMENT_APPLY_ID", nullable = true)
	@NotFound(action = NotFoundAction.IGNORE)
	public CbsEquipmentApplyEntity getEquipmentApplyId(){
		return this.equipmentApplyId;
	}

	public void setEquipmentApplyId(CbsEquipmentApplyEntity equipmentApplyId) {
		this.equipmentApplyId = equipmentApplyId;
	}
}
